package com.wanczy.util;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;

public class CloseDB {
	public static void close(Connection conn,PreparedStatement pstate,ResultSet res) throws Exception {
		if(null != res) {
			res.close();
		}
		if(null != pstate) {
			pstate.close();
		}
		if(null != conn) {
			conn.close();
		}
	}
}
